package com.emm.yixun.common.model.dto;

import net.sf.oval.constraint.NotEmpty;

/**
 * OA系统对接人员表
 * 
 * @author Administrator
 *
 */
public class HrmResource {
    // 账号类型（0:主账号；1：次账号（次账号不需同步，只同步主账号，请各系统获取后根据值自行处理）
    @NotEmpty(message = "账户类型不能为空")
    private String accounttype;
    // 所属部门编码
    
    @NotEmpty(message = "所属部门编码不能为空")
    private String departmentCode;

    // 邮箱地址
    private String email;
    
    // 人员ID
    @NotEmpty(message = "人员ID不能为空")
    private String hrmresourceId;
    
    // 姓名
    @NotEmpty(message = "姓名不能为空")
    private String lastname;
    
    // 登录帐号
    @NotEmpty(message = "登录帐号不能为空")
    private String loginid;
    
    // 直接上级人员
    private String managerID;
    
    // 手机号码
    private String mobile;
    
    // 密码
    @NotEmpty(message = "密码不能为空")
    private String password;
    
    // 性别 0 男；1 女
    @NotEmpty(message = "性别不能为空")
    private String sex;
    
    // 状态0：试用；1：正式；2：临时；3：试用延期；4：解聘；5：离职；6：退休；7：无效；
    @NotEmpty(message = "员工状态不能为空")
    private String status;
    
    // 所属公司编码
    @NotEmpty(message = "所属公司编码")
    private String subcompanyCode;
    
    // 用户头像
    private String usericon;
    
    // 岗位职务
    private String jobtitle;

    public String getAccounttype() {
	return accounttype;
    }

    public void setAccounttype(String accounttype) {
	this.accounttype = accounttype;
    }

    public String getDepartmentCode() {
	return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
	this.departmentCode = departmentCode;
    }

    public String getEmail() {
	return email;
    }

    public void setEmail(String email) {
	this.email = email;
    }

    public String getHrmresourceId() {
	return hrmresourceId;
    }

    public void setHrmresourceId(String hrmresourceId) {
	this.hrmresourceId = hrmresourceId;
    }

    public String getLastname() {
	return lastname;
    }

    public void setLastname(String lastname) {
	this.lastname = lastname;
    }

    public String getLoginid() {
	return loginid;
    }

    public void setLoginid(String loginid) {
	this.loginid = loginid;
    }

    public String getManagerID() {
	return managerID;
    }

    public void setManagerID(String managerID) {
	this.managerID = managerID;
    }

    public String getMobile() {
	return mobile;
    }

    public void setMobile(String mobile) {
	this.mobile = mobile;
    }

    public String getPassword() {
	return password;
    }

    public void setPassword(String password) {
	this.password = password;
    }

    public String getSex() {
	return sex;
    }

    public void setSex(String sex) {
	this.sex = sex;
    }

    public String getStatus() {
	return status;
    }

    public void setStatus(String status) {
	this.status = status;
    }

    public String getSubcompanyCode() {
	return subcompanyCode;
    }

    public void setSubcompanyCode(String subcompanyCode) {
	this.subcompanyCode = subcompanyCode;
    }

	public String getUsericon() {
		return usericon;
	}

	public void setUsericon(String usericon) {
		this.usericon = usericon;
	}

	public String getJobtitle() {
		return jobtitle;
	}

	public void setJobtitle(String jobtitle) {
		this.jobtitle = jobtitle;
	}

	public HrmResource(String accounttype, String departmentCode, String email,
	    String hrmresourceId, String lastname, String loginid,
	    String managerID, String mobile, String password, String sex,
	    String status, String subcompanyCode, String usericon, String jobtitle) {
		super();
		this.accounttype = accounttype;
		this.departmentCode = departmentCode;
		this.email = email;
		this.hrmresourceId = hrmresourceId;
		this.lastname = lastname;
		this.loginid = loginid;
		this.managerID = managerID;
		this.mobile = mobile;
		this.password = password;
		this.sex = sex;
		this.status = status;
		this.subcompanyCode = subcompanyCode;
		this.usericon = usericon;
		this.jobtitle = jobtitle;
    }

    public HrmResource() {
    	super();
    }

}
